<?php
import('Psg.Teryt');
?>
<h1>Miasta i regiony Polski</h1>
<?php foreach (Psg\Teryt::getStates() as $id => $vars): ?>
    <h3>
        <a href="<?= Url::site('overview/state/' . $vars['id']) ?>"><?= $vars['nazwa'] ?></a>
    </h3>
    <ul class="menuUl">
        <?php foreach (Psg\Teryt::getCityOfStateId($vars['id'])as $idm => $vm): ?>
            <li><a href="<?= Url::site('overview/city/' . $vm['id']) ?>"><?= $vm['nazwa'] ?></a></li>
        <?php endforeach; ?>
    </ul>
<?php endforeach; ?>
